<!-- 注册页 -->
<template>
    <div class="register">
        <!-- 引入account公共背景 -->
        <comAccount></comAccount>

        <div class="registerBox">
            <h3>TP-LINK会员注册</h3>

            <!-- 手机注册与邮箱注册选项卡 -->
            <div class="tab">
                <router-link to="/register/phone">手机注册</router-link>
                <router-link to="/register/email">邮箱注册</router-link>
            </div>
            <router-view />
        </div>
    </div>
</template>

<script>
import ComAccount from "@/components/account/ComAccount.vue";
export default {
    components: {
        ComAccount,
    },
    data() {
        return {
            checked: true,
        };
    },
};
</script>

<style lang="scss" scoped>
.register {
    .registerBox {
        position: absolute;
        top: 200px;
        left: 300px;
        z-index: 999;
        width: 600px;
        background-color: #fff;
        h3 {
            padding: 40px 0 0;
            font-size: 24px;
            color: #0096ff;
            line-height: 40px;
            text-align: center;
            font-weight: 700;
        }
        .tab {
            width: 400px;
            height: 32px;
            margin: 36px auto 0;
            a {
                width: 50%;
                height: 100%;
                float: left;
                font-size: 14px;
                color: #333;
                text-align: center;
                line-height: 32px;
                box-sizing: border-box;
                border-bottom: 1px solid #ccc;
                cursor: pointer;
                &:active {
                    color: #0096ff;
                    border-bottom: 1px solid #0096ff;
                }
            }
        }
    }
}
</style>
